<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>Dashboards</title>
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
    </h:head>
    <h:body>
        <ui:composition>
            <h:form>
               <!-- <p:toolbar>
                    <p:toolbarGroup align="left">
                        <p:commandButton type="push" value="New" image="ui-icon-document" />
                        <p:commandButton type="push" value="Save" image="ui-icon-document" />                        
                        <p:commandButton type="push" value="Delete" image="ui-icon-trash"/>                        
                    </p:toolbarGroup>
                </p:toolbar>
               -->
               <p:dashboard  rendered="true" id="board" model="#{dashboardBean.model}" >
                    <c:forEach items="#{dashboardBean.userDashBoard.listDashboard}" var="dsb">
                        <p:panel style="margin: 10px" id="#{dsb.id}" header="#{dsb.title}" closable="true">                     
                             <ui:include src="#{dsb.urlContent}" />
                        </p:panel>
                        
                    </c:forEach>
                    
                 <!--   <p:panel id="GL" header="GL" closable="true">
                        <h:outputText value="GL Content"/>                        
                    </p:panel>                
                    <p:panel id="saving" header="Saving" closable="true">
                        <h:outputText value="Saving Content"/>                        
                    </p:panel>                
                    <p:panel id="loan" header="loan" closable="true">
                        <h:outputText value="Loan Content"/>                        
                    </p:panel>                
                    <p:panel id="deposit" header="Deposit" closable="true">
                        <h:outputText value="Deposit Content"/>                        
                    </p:panel>                -->
                </p:dashboard>
            </h:form>
        </ui:composition>
        
    </h:body>
</html>
